package net.lzzy.practices.wed;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.lzzy.practices.wed.handler.BusinessException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author on 2022/5/5
 * Description
 */
@Api(tags = "测试业务")
@Controller
public class IndexController {
    @ApiOperation(value = "测试业务异常", notes = "<b>参数包括：</b><br/>&nbsp;&nbsp;&nbsp;&nbsp;BusinessException值")
    @GetMapping("/")
    public String index() {
        if(true){
            throw new BusinessException("测试业务异常");
        }
        return "index";
    }
}
